/**
 * Created by Administrator on 2017/5/1.
 */
$(document).ready(function () {
    $('p')
        .eq(2)
        .css('border', 'thin solid #333')
        .click(function () {
            var $clickedItem = $(this);
            $clickedItem
                .next()
                .slideDown('slow', function () {
                    $clickedItem.slideUp('slow');
                });
        });
    $('p').eq(3).css('backgroundColor', '#ccc').hide();
});